var mqtt = require('mqtt')
// mqtts://182.61.12.15:8883  rejectUnauthorized: false,
var client = mqtt.connect('mqtt://182.61.12.15:1883',{
      rejectUnauthorized: false,
      username: 'test',
      password: '123456'
})
client.on('connect', function (connack) {
    console.log(`return code: ${connack.returnCode}, sessionPresent: ${connack.sessionPresent}`)
    client.end()
})
client.on("error", function (error) {
    console.log(`${error}`)
})